home *** CD-ROM | disk | FTP | other *** search
- Path: news.mindlink.net!news
- From: genew@mindlink.bc.ca (Gene Wirchenko)
- Newsgroups: comp.lang.c
- Subject: Re: question
- Date: Sun, 04 Feb 1996 17:58:49 GMT
- Organization: MIND LINK! - British Columbia, Canada
- Message-ID: <4f2s88$b6u@fountain.mindlink.net>
- References: <4f2o7j$l62@news2.widomaker.com>
- NNTP-Posting-Host: line200.nwm.mindlink.net
- X-Newsreader: Forte Free Agent 1.0.82
-
- sgross@widomaker.com (Stephen Gross) wrote:
-
- >Can anybody explain in depth the process of the following code:
- > assuming (char *q, char *z)
-
- >-> q = &z; <-
-
- > I know of course that this assign the address of z to q, BUT:
- > I have written code wherein the variable q is completely
- >unnecessary (i put it in as a watch variable), but the program functions
- >correctly with it, and bombs out without it. This is theoretically
- >impossible because q does nothing more than hold z's address. NOTHING more.
- >any ideas on what's going on? i'm using borland c 3.1.
-
- >thanx, sgross
-
- Please post code.
-
- As it stands, you might have a compiler error or even worse: a
- typo. We aren't mindreaders. Well, actually, I am, but I'm not that
- good.
-
- Sincerely,
-
- Gene Wirchenko
-
- C Pronunciation Guide:
- y=x++; "wye equals ex plus plus semicolon"
- x=x++; "ex equals ex doublecross semicolon"
-
-